<?php


namespace app\api\interfaces;

/**
 * @name 消息回复模块
 * @sort 7
 */
interface ReplyInterface
{
//    /**
//     * @name  同步历史配置关键词回复
//     * @sort 1
//     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
//     */
//    public function actionSync_config_keys();
    /**
     * @name  配置关键词回复
     * @sort 2
     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
     * @post k:rule_name,v:规则名称,t:规则名称,n:
     * @post k:rule_keys,v:{""：""},t:关键词,n:
     * @post k:type,v:text,t:回复内容类型（图片（image）、视频（video）语音 （voice）、图文素材（news）、文字（text）、微信模板（template））,n:
     * @post k:reply_mode,v:reply_all,t:回复模式，reply_all代表全部回复，random_one代表随机回复其中一条,n:
     * @post k:content,v:回复内容,t:回复内容（type=text：文字内容，type=其他：素材的media_id）,n:
     * @post-remark-keys [{"key":"喜欢","preg#匹配模式（0:全匹配、1：半匹配）":"0"},{"":""}]
     * @case {"code":200,"flag":true,"msg":"删除素材成功","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
     */
    public function actionConfig_keys();

    /**
     * @name  关键词回复配置列表
     * @sort 3
     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
     * @post k:keys,v:你,t:搜索关键词
     * @post k:page,v:1,t:页码,n:
     * @post k:page_size,v:20,t:每页显示条数
     * @case {"count#总条数": "2", "size#每页大小": 15,"pages#页面数": 1,"index#当前页":1,"data#数据":[{"id#id": "7c23724d087a425c888612e37f2c86cd","name#规则名称": "七夕","keywords#关键词组合": "六郎,爱惜,牛郎","type#回复类型": "image","content#内容【根据type区分】": "http://mmbiz.qpic.cn/mmbiz_jpg/7wicYrkoTBbCeYicR28Vhnibgia0xqUOicMpVJp677lDkW4dBbLt7uwibNicZdC0a7UhsqvMRibWAeO4ag1G4MHFPZl0zQ/0?wx_fmt=jpeg","reply_mode#回复模式":"reply_all代表全部回复，random_one代表随机回复其中一条","add_time#添加时间":"2018-09-12 21:50:58"},{"":""}]}
     */
    public function actionConfig_keys_list();


    /**
     * @name 获取关键词配置
     * @sort 4
     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
     * @post k:id,v:403a8141dca36f45,t:配置关键词回复规则id,n:
     * @case {"id#规则ID": "914df57a96062754020991f44b004403","name#规则名称": "七夕","reply_mode#回复模式": "reply_all","add_time#添加时间": "2018-09-12 23:14:45","content#回复内容": "atEoQdAuSfnFV38yheYEvRG5OUuFUSWVv870cc51cJk","type#回复内容类型": "image","items#列表": [{"id#关键词ID": "f35f9660c4659f5e95ec2869b241607e","key_id#配置规则id": "914df57a96062754020991f44b004403","keywords#关键词": "你","preg#关键词匹配规则（0:全匹配、1：半匹配）": "0"},{"":""}]}
     */
    public function actionConfig_keys_one();
    /**
     * @name 编辑关键词
     * @sort 5
     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
     * @post k:id,v:wx403a8141dca36f45,t:规则id,n:
     * @post k:rule_name,v:规则名称,t:规则名称,n:
     * @post k:rule_keys,v:{""：""},t:关键词,n:
     * @post k:type,v:text,t:回复内容类型（图片（image）、视频（video）语音 （voice）、图文素材（news）、文字（text）、微信模板（template））,n:
     * @post k:reply_mode,v:reply_all,t:回复模式，reply_all代表全部回复，random_one代表随机回复其中一条,n:
     * @post k:content,v:回复内容,t:回复内容（type=text：文字内容，type=其他：素材的media_id）,n:
     * @post-remark-keys [{"id#关键词id":"f35f9660c4659f5e95ec2869b241607e","key":"喜欢","preg#匹配模式（0:全匹配、1：半匹配）":"0"},{"":""}]
     * @case {"code":200,"flag":true,"msg":"修改成功！","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
     */
    public function actionConfig_keys_upd();

    /**
     * @name 删除关键词
     * @sort 6
     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
     * @post k:id,v:403a8141dca36f45,t:关键词配置规则id,n:
     * @case {"code":200,"flag":true,"msg":"删除成功","data":[],"success":true,"errorData":[],"md5":"bf7823b4c63540c484632b2db1b844f1","alg":"SALT_MD5"}
     */
    public function actionConfig_keys_del();
//    /**
//     * @name  关键词回复日志
//     * @sort 4
//     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
//     */
//    public function actionConfig_keys_log();
//
//    /**
//     * @name  设置关注回复语
//     * @sort 5
//     * @post k:appid,v:wx403a8141dca36f45,t:微信公众号appid,n:
//     */
//    public function actionSubscribe_reply();


}